import instance from '@/utils/axios.js'

export function apiChannelData () {
  return instance({
    url: '/app/v1_0/user/channels',
    method: 'get'
  })
}

// 全部频道列表
export function AllChannelsList () {
  return instance({
    url: '/app/v1_0/channels'
  })
}

// 修改我的频道数据
export function editChannels (channels) {
  return instance({
    url: '/app/v1_0/user/channels',
    method: 'put',
    data: {
      channels: channels
    }
  })
}
